Hello!
I tried to remake spell named “Light Emission” in Elemental Batllegrounds that game is owned
by @mygame43,
So I tried it And I did this
(PS: I don’t want copy that game I used they idea only for learning purpores so I can learn to make my scripts)
Script (Server):
game.ReplicatedStorage.Cast.OnServerEvent:Connect(function(plr,pos)
plr.Character.HumanoidRootPart.Anchored = true
for i = 0,1,0.2 do
plr.Character.HumanoidRootPart.CFrame = plr.Character.HumanoidRootPart.CFrame:lerp(pos,i)
Clone = game.ServerStorage.Effect:Clone()
Clone.Parent = workspace
Clone.Position = plr.Character.HumanoidRootPart.Position
local Tween = game:GetService("TweenService"):Create(Clone,TweenInfo.new(0.2,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{Size = Clone.Big.Value})
Tween:Play()
workspace.Teleport:Play()
wait(0.5)
local Tween = game:GetService("TweenService"):Create(Clone,TweenInfo.new(0.2,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{Size = Clone.Small.Value})
Tween:Play()
Clone:Destroy()
end
plr.Character.HumanoidRootPart.Anchored = false
end)
I would like you guys suggest me what to add or improve in script