Workspace.H:7: attempt to concatenate Instance with string
Code:
01 | game.ReplicatedStorage.MapFuncs.TweenPart.Event:Connect( function (thing 222 , x 2 , y 2 , z 2 , spped) |
02 | local x 33333333333 = thing 222. Position.X + x 2 |
03 | local y 3333 = thing 222. Position.Y + y 2 |
04 | local z 33333333 = thing 222. Position.Z + z 2 |
05 | game.ReplicatedStorage.ConsoleLog:Fire( "Tweening " ..thing 222.. " with " ..z 33333333.. "," ..y 3333.. "," ..x 33333333333.. " at " ..spped.. "s" ) |
06 | wait() |
07 | local TweenService = game:GetService( "TweenService" ) |
08 | local thing = thing 222 |
09 | local tweeening = TweenInfo.new( |
10 | spped, |
11 | Enum.EasingStyle.Linear, |
12 | Enum.EasingDirection.Out, |
13 | 0 , |
14 | false , |
15 | 0 |
and yes everything else is proper it's actually line 5
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?
You cannot use remoteevents and have
1 | "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