Im Trying to change the angle when the part gets touched but why does the part move to (0,0,0) Note: The part is NoCollide and Anchored is that helps
Script:
local dad = script.Parent local Light = Instance.new("PointLight") Light.Color = dad.Color local i = 0 local OgPos = dad.Position dad.Touched:Connect(function(p) local pp = p.Parent if game.Players:GetPlayerFromCharacter(pp) then i = i + 25 dad.CFrame = CFrame.new(OgPos) --// I tried this to counteract problem but there was no diffrence dad.CFrame = CFrame.Angles(i/2,i,i*3) end end)
local dad = script.Parent local Light = Instance.new("PointLight") Light.Color = dad.Color local i = 0 local OgPos = dad.Position dad.Touched:Connect(function(p) local pp = p.Parent if game.Players:GetPlayerFromCharacter(pp) then i = i + 25 local Pos = Vector3.new(dad.Position.X,dad.Position.Y,dad.Position.Z) local Orientation = Vector3.new(i/2,i,i*3) dad.CFrame = CFrame.new(Pos,Orientation) end end)
I don't know if this helps but :shrug: