if player:IsInGroup(4324101) then local Part = Instance.new("Part", player.Character.Parent) player.PlayerGui.Spawn.Enabled = true Part.Anchored = true Part.Position = Vector3.new(player.Character.Humanoid.Parent.Head) end
For some reason this wont work. This is in a local script and there is no errors.
Vector3.new( X , Y , Z )
You put Character.Head
so it's a part not vector3 value. You forget .Position
Part.Position = player.Character.Head.Position
But you said that you want to put above 100 studs so you can use Vector3 + Vector3
Part.Position = player.Character.Head.Position + Vector3.new(0,100,0)
If you want to set CFrame
use CFrame * CFrame
Part.CFrame = player.Character.Head.CFrame * CFrame.new(0,100,0)
note:
local X = 0 -- X>0 == right | 0>X == left local Y = 0 -- Y>0 == up | 0>Y == down local Z = 0 -- Z>0 == backward | 0>Z == forward Part.CFrame = player.Character.Head.CFrame * CFrame.new(X,Y,Z)