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

Why are the scripting results in Studios inconsistent with the results in gameplay from the browser?

Asked by 6 years ago

In studios play mode my script works fine, but when I play the game from my roblox profile, all my attached hats refuse to attach on the players. The script is attached below. I feel like the problem is originating from AttachmentPoint and AttachmentRight. Below:

Player = game.Players.LocalPlayer C = Player.Character Dummy = game.Lighting.Dummy D = C:GetChildren()

script.Parent.MouseButton1Click:connect(function() Player:ClearCharacterAppearance() D = C:GetChildren()

C.Torso.Transparency = 0 C.Head.Transparency = 0 C["Right Arm"].Transparency = 0 C["Right Leg"].Transparency = 0 C["Left Arm"].Transparency = 0 C["Left Leg"].Transparency = 0

local hat = game.Lighting.Dummy.Hat:clone() hat.Parent = C hat.AttachmentPoint = CFrame.new(0,0.3,-.23) hat.AttachmentForward = Vector3.new(0, -0.35, -0.97)

end)

Answer this question