Workspace.H:7: attempt to concatenate Instance with string
Code:
game.ReplicatedStorage.MapFuncs.TweenPart.Event:Connect(function(thing222, x2, y2, z2, spped) local x33333333333 = thing222.Position.X + x2 local y3333 = thing222.Position.Y + y2 local z33333333 = thing222.Position.Z + z2 game.ReplicatedStorage.ConsoleLog:Fire("Tweening "..thing222.." with "..z33333333..","..y3333..","..x33333333333.." at "..spped.."s") wait() local TweenService = game:GetService("TweenService") local thing = thing222 local tweeening = TweenInfo.new( spped, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0 ) local up = {CFrame = CFrame.new(x, y, x)} local tweenup = TweenService:Create(thing,tweeening,up) tweenup:Play() end)
and yes everything else is proper it's actually line 5
You cannot use remoteevents and have
"String".. Instance.. "String"
I have tried it before, and it gave the same error, so I looked through the devforum and saw that you cannot do that. There are many ways of getting around this, depending on what you are doing. For example, if you were trying to see if a player is on one team and not the other, you would use an if statement.
-Ducky Developer Youtuber
Locked by JesseSong, IAmNotTheReal_MePipe, and User#32819
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?