Welcome to the Forums!
Join thousands of other Roblox members with a free account.
Create Forum Account

Help Me Fix My Code

  • This website was created by Roblox members to replace the official forums (because Roblox shut them down) Join us if you like Roblox!

Bratlolka2

New Member
Reputation: 0 / 0 / 0
Nov 25, 2021
2
0
1
Roblox
Bratlolka2
Hello,
I am making a small game and my code isn't working but there is no error message.
The Code Is Here:
script.Parent.Touched:Connect(function(h)

local humanoid = h.Parent:FindFirstChild("Humanoid")

if humanoid ~= nil then

h.Parent.HumanoidRootPart.CFrame = CFrame.new(game.Workspace.Map.TeleportPad.Position)

local SMGClone = game.Workspace.SMG:Clone() - This isn't working

SMGClone.Parent = game.StarterPack - This isn't working

wait(3)

end

end)

Thanks!