Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I get Workspace.H:7: attempt to concatenate Instance with string, any help?

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

1 answer

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

3 comments

0

aint remote event

0

What is it then?

0

BindableEvent

This discussion is preserved as it was. New answers, comments, and votes are closed.