|
| 14 Oct 2017 01:31 PM |
local sword = game.StarterPack.Sword local character = game.Workspace.Player local player = game.Players:GetPlayerFromCharacter(character)
sword.Part.Position = player["Left Arm"].Position
It is in a script. What i am trying to say is that it is not in a localscript.
I want that the sword's position is at the left arm's position. |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2017 01:39 PM |
| Error it is giving: Player not a valid member of workspace |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2017 01:53 PM |
| Player isn’t a part of workspace |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Oct 2017 01:55 PM |
| But how do need to change that? |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2017 01:57 PM |
| It still doesn't work. Maybe, i am thinking about it now, do i need to use the FindFirstChild() function. |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2017 02:02 PM |
nono, "Player" isn't inside workspace. Also if you're going to use a server script use playeradded and characteradded
local sword = game:GetService("StarterPack"):WaitForChild("Sword") game:GetService("Players").PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(char) end) end
--//I didn't define "player" and "char" since they already are defined since we are using the playeradded and characteradded argument
attempt to index global 'soul' (a nil value) |
|
|
| Report Abuse |
|
|