Why Doesn't this work in game?
local net = script.Parent.Parent.Net.Mesh script.Parent.Touched:Connect(function(hit) print(hit) if hit:IsA("Part") then net.Scale = Vector3.new(2.885, 2.7, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, 2.5, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, 2.3, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, 2.1, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, 1.9, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, 1.7, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, 1.3, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, .9, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, .5, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, .2, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, -0.2, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, -.8, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, -1.3, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, -1.8, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, -2.2, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, -2.6, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, -2.9, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, -2.6, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, -2.2, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, -1.8, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, -1.4, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, -1, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, -.6, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, -.2, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, .2, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, .6, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, 1, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, 1.4, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, 1.8, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, 2.2, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, 2.6, 2.9) game:GetService('RunService').RenderStepped:Wait(1) net.Scale = Vector3.new(2.885, 2.9, 2.9) game:GetService('RunService').RenderStepped:Wait(1) end end)
As maumaumaumaumaumau said, It can only be used in a LocalScript.
A LocalScript will only make it run on the Client side. If you want other players in the Server to see this change, use a RemoteEvent.
For extra assistance, please contact me on Discord.
Bark#4260