Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

why wont I teleport 15 Studs in front of me?

Asked by
Tizzel40 243 Moderation Voter
5 years ago
Edited 5 years ago
remote.OnServerEvent:Connect(function(plr,mousehit) 
     local hithum = false
    local char = plr.Character or plr.CharacterAdded:wait() 

        local fireball = game.ReplicatedStorage:WaitForChild("telepart"):Clone()

    fireball.Parent = game.Workspace

    fireball.CFrame = char:WaitForChild("HumanoidRootPart").CFrame
    fireball.telesound:Play()


    char.HumanoidRootPart.CFrame = CFrame.new(char.HumanoidRootPart.CFrame.LookVector * 15)

Answer this question