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

My Teleport-thingy won't work even though i have enough points? pls help

Asked by 4 years ago
Edited 4 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

I created this portal you can come in if you have enough points

local Teleporter = game.Workspace.Teleporter
local Teleporter2 = game.Workspace.Home

    Teleporter.Touched:Connect(function(hit)
        if hit:FindFirstChild("Humanoid") and game.Players.LocalPlayer.leaderstats.Points.Value >= 10000 then
            print("Player can be teleported!")
            hit.Parent.HumanoidRootPart.CFrame = Teleporter2.CFrame
        end
        end)
1
in line 5 the script is trying to find the hit object's first child named "Humanoid", but as the hit from a player would be a body part, here's that line fixed: if hit.Parent:FindFirstChild("Humanoid") and Axenori 124 — 4y
0
XTOOTHLEXS, i'm stupid lol, i don't know how i did not figure that one out xD, i always make silly mistakes. maxpax2009 340 — 4y

Answer this question