#I am getting attempt to index nil with 'character' error

52 messages · Page 1 of 1 (latest)

wanton leaf
#

oh ty man ur the absolute best ever

#

@spring mountain

#

wait

#

no same error

#

its saying line 7

#

local Humanoid = Player.Character.HumanoidRootPart

#

this line

#

this is a script located inside serverscript storage

#

hmm?

#

yes i want to tp the person who fires the event from a text button

#

so client to server

#

.?

#

wdym

#

k let me try

#

do i write the ... after player

#

so what would i use the second arg for

#

oh heres my code for the button that fires the event

#

for i,Button in pairs(script.Parent:GetChildren()) do
if Button:IsA("TextButton") then

        Button.MouseButton1Click:Connect(function()
            game.ReplicatedStorage.TeleportEvent:FireServer(Button.Name)
        end)
    end

end

#

im getting a new error

#

it says

#

Cframe is not a valid member of Part "Workspace.pazoka1234.HumanoidRootPart"

#

OMG IT WORKED

mighty socketBOT
#

studio** You are now Level 3! **studio

wanton leaf
#

AFTER SO LONG

#

BROOOO UR THE BEST

#

tysm bro

#

i watched so many tutorials

#

i have one moer question

#

yk in the script i used in my textbutton

#

game.ReplicatedStorage.TeleportEvent:FireServer(Button.Name) in this line in the brackets i wrote Buttion.Name what does that mean

#

oh

#

yea

#

i tokk it out and it still worked

#

what usually goes there tho?

#

s==oh ok

#

btw are u a dev?

#

like have u worked on games before?

#

like?

#

thats possible!?!?

#

from what game

#

like a simulator?

#

wdym

#

wth

#

r u crazy bro

#

thats smart af

#

wait on what game tho

#

like just a baseplate and u told people to join?

#

wait are u going to hack me?

#

since you know my scripts

#

o know

#

please dont

#

can you be my teacher