Hey, I’ve been having this error when going from Client to Server.
Here is my local script:
local RE = game.ReplicatedStorage.Meteor
local meteor = game.Workspace.Weather.Meteor
script.Parent.MouseButton1Click:Connect(function()
RE:FireServer(meteor)
end)
And here is my script
local debounce = false
RE.OnServerEvent:Connect(function(meteor)
local sound = game.Workspace.Sound
sound:Play()
local TweenService = game:GetService("TweenService")
local tweenProp = TweenInfo.new(5,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0)
local tween = TweenService:Create(meteor,tweenProp,{CFrame = CFrame.new(-2703.796, 17.78, 1270.8)})
tween:Play()
end)
Script is in serverscriptservice and localscript is in the GUI you press the button from.
I fixed this issue instead of passing “Meteor” I declared the variable again in the serverscript and it worked? Why didn’t it work when passing the parameters though?