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

Union is not a valid member of Player?

Asked by 9 years ago

Ok so the teleport script I have it has to be the same name for the models but How can Union not be a vaild member of Player if it's in the model? I'm trying to get it to probably animate and I can't do game.Workspace.InstantTeleport.Union it won't work with that. So how can I animate the brick without having to do that? and not saying this Union is not a valid member of Player. Also if anyone is wounding what me is it's a variable for game.Players.LocalPlayer

001local me = game.Players.LocalPlayer
002local locations = script.Parent:WaitForChild("Locations")
003local porter = script.Parent:WaitForChild("Porter").Value
004local groupserv = game:GetService("GroupService")
005local selected = 2
006local selloc = nil
007local location = {}
008local gui = script.Parent:WaitForChild("selection")
009 
010function gatherLocations()
011    for i, v in pairs(locations:GetChildren())do
012        table.insert(location, {v.Name, v.Value})
013    end
014end
015 
View all 110 lines...
0
Make sure that your hierarchical calling is correct. Make sure you are locating it in the right position and are not making a simple mistake. FearMeIAmLag 1161 — 9y
1
It is in the right location and all but in the output it says Union is not a valid member of Player Anciteify 70 — 9y
0
whice its not suppose to be part of player its suppose to be the model which i got the parent right Anciteify 70 — 9y
0
which Line is the error located in? And where is this script located? Kryddan 261 — 9y
0
Line 19 and it's located in a Screen GUI Anciteify 70 — 9y

1 answer

Log in to vote
0
Answered by
woodengop 1134 Moderation Voter
9 years ago

The Reason why you have Union is not a valid member of Player, because You need to use the Characternot the Player. To do that we need to add game.Players.LocalPlayer.Character

0
How would I add that in? Anciteify 70 — 9y
0
Can you show the whole script? woodengop 1134 — 9y
0
yup just edited the post Anciteify 70 — 9y
0
You can't hold Values on Variables. woodengop 1134 — 9y
View all comments (2 more)
0
Well this script is in a ScreenGui which is in PlayerGUI's when it opens how can I find Union then? Anciteify 70 — 9y
0
line 102 you have me.Part, it should be me.Character.Parent woodengop 1134 — 9y
Ad

Answer this question