Hello, I am making a Sword where if the sword animation plays, an huge explosion pops up. while im making this script i have an error that i don't know how to solve
Position is not a valid member of RemoteEvent
sorry for bad explanation this is the 2nd time i have used this site
the error is at line 28: NewExplosion.Position = Character["Right Arm"].Position
here is my script
local RemoteEvent = game.ReplicatedStorage.Explosion
local ReplicatedStorage = game.ReplicatedStorage
RemoteEvent.OnServerEvent:Connect(function(plr, tool)
local Explosion = ReplicatedStorage.Explosion
local TweenService = game:GetService("TweenService")
local TweenInformation = TweenInfo.new(
0.5,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
0,
false,
0
)
local TweenProperty = {
Position = Vector3.new(25,25,25);
Transparency = 1;
}
local NewExplosion = Explosion:Clone()
local Character = plr.Character
local player = plr.Name
NewExplosion.Position = Character["Right Arm"].Position
NewExplosion.Parent = workspace
local Tween = TweenService:Create(NewExplosion, TweenInformation, TweenProperty)
Tween:Play()
i thouht i would ask help here

1 comment
Is ReplicatedStorage.Explosion an event or remote event?