Korrow
(Peter)
#1
This time, I am not sure what the deal really is, I attempt to tween the orientation of a part inside a server script.
Example (CLIENT):
https://gyazo.com/b07566031f4b28b0ff5244e38bf49a95.gif
Example (SERVER):
https://gyazo.com/c5346f0fbc748f0a82e6271fadbd0b8b.gif
This is the code (server script)
local aura = script.Aura:Clone()
local m6d = Instance.new("Motor6D")
m6d.Part0 = chr.HumanoidRootPart
m6d.Part1 = aura.PrimaryPart
m6d.Parent = aura.PrimaryPart
aura.PrimaryPart.Anchored = false
aura.Parent = chr
ts:Create(aura.C,TweenInfo.new(12),{Orientation = Vector3.new(1500,0,1500)}):Play()
Any ideas?
1 Like
This is probably a strange character replication bug. Random stuff like this happens to me a lot when working with characters.
You could most-likely fix this by doing the tweening on the client instead, which is actually better practice and will help with performance.
1 Like
Korrow
(Peter)
#3
That’s unfortunate, that will complicate my other code cause I don’t really mind player performance right now but whatever.
This module makes it extremely easy. You can basically keep all your code as-is:
3 Likes
Korrow
(Peter)
#5
Uhuh, i’ll definitely try that.